/*
 * colortf.h
 *
 *  Created on: Mar 17, 2021
 *      Author: kychu
 */

#ifndef USERCODE_COMPONENTS_LED_STRIP_INCLUDE_COLORTF_H_
#define USERCODE_COMPONENTS_LED_STRIP_INCLUDE_COLORTF_H_

#include <stdint.h>

typedef struct {
  uint8_t r, g, b;
} led_rgb_t;

typedef struct {
  uint16_t h, s, v;
} led_hsv_t;

void hsv2rgb(led_hsv_t *hsv, led_rgb_t *rgb);
void rgb2hsv(led_rgb_t *rgb, led_hsv_t *hsv);

#endif /* USERCODE_COMPONENTS_LED_STRIP_INCLUDE_COLORTF_H_ */
